<T:ViewBase x:Class="WPFExcelReport.TSYSBADEF02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBPROG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBPROG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBSTAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBSTAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBBEZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBBEZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBAPROG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBAPROG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFPROG1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFPROG1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFPROG2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFPROG2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFPROG3:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFPROG3}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFPROG4:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFPROG4}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFPROG5:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFPROG5}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=SYBFORM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwSYSBADEF.SYBFORM}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsSYSBADEF,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwSYSBADEF}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwSYSBADEF, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="SYBMANDANT"
                                    Binding="{Binding Path=SYBMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBPROG"
                                    Binding="{Binding Path=SYBPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSTAKZ"
                                    Binding="{Binding Path=SYBSTAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSTAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBBEZ"
                                    Binding="{Binding Path=SYBBEZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBBEZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBAPROG"
                                    Binding="{Binding Path=SYBAPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBAPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFPROG1"
                                    Binding="{Binding Path=SYBFPROG1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFPROG1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFPROG2"
                                    Binding="{Binding Path=SYBFPROG2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFPROG2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFPROG3"
                                    Binding="{Binding Path=SYBFPROG3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFPROG3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFPROG4"
                                    Binding="{Binding Path=SYBFPROG4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFPROG4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFPROG5"
                                    Binding="{Binding Path=SYBFPROG5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFPROG5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFORM"
                                    Binding="{Binding Path=SYBFORM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFORM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBDBRT"
                                    Binding="{Binding Path=SYBDBRT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBDBRT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBDHOE"
                                    Binding="{Binding Path=SYBDHOE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBDHOE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBKOP"
                                    Binding="{Binding Path=SYBKOP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBKOP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBDECKBL"
                                    Binding="{Binding Path=SYBDECKBL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBDECKBL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBNOPRINT"
                                    Binding="{Binding Path=SYBNOPRINT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBNOPRINT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSUBSYS"
                                    Binding="{Binding Path=SYBSUBSYS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSUBSYS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSPAETER"
                                    Binding="{Binding Path=SYBSPAETER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSPAETER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSFKT"
                                    Binding="{Binding Path=SYBSFKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSFKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBUSERPRG"
                                    Binding="{Binding Path=SYBUSERPRG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBUSERPRG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSTD"
                                    Binding="{Binding Path=SYBSTD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSTD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBBPROG"
                                    Binding="{Binding Path=SYBBPROG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBBPROG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBTYP"
                                    Binding="{Binding Path=SYBTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBKL1"
                                    Binding="{Binding Path=SYBKL1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBKL1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBKL2"
                                    Binding="{Binding Path=SYBKL2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBKL2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBKL3"
                                    Binding="{Binding Path=SYBKL3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBKL3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS1"
                                    Binding="{Binding Path=SYBANSTOSS1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS2"
                                    Binding="{Binding Path=SYBANSTOSS2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS3"
                                    Binding="{Binding Path=SYBANSTOSS3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS4"
                                    Binding="{Binding Path=SYBANSTOSS4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS5"
                                    Binding="{Binding Path=SYBANSTOSS5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS6"
                                    Binding="{Binding Path=SYBANSTOSS6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBANSTOSS7"
                                    Binding="{Binding Path=SYBANSTOSS7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBANSTOSS7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSA"
                                    Binding="{Binding Path=SYBSA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBUKGRD"
                                    Binding="{Binding Path=SYBUKGRD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBUKGRD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBLEITWEG"
                                    Binding="{Binding Path=SYBLEITWEG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBLEITWEG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBBEM"
                                    Binding="{Binding Path=SYBBEM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBBEM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBSANR"
                                    Binding="{Binding Path=SYBSANR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBSANR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBCMD"
                                    Binding="{Binding Path=SYBCMD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBCMD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBFILLER"
                                    Binding="{Binding Path=SYBFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBAENZL"
                                    Binding="{Binding Path=SYBAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBAENDBEN"
                                    Binding="{Binding Path=SYBAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBAENDDAT"
                                    Binding="{Binding Path=SYBAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBNEUBEN"
                                    Binding="{Binding Path=SYBNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="SYBNEUDAT"
                                    Binding="{Binding Path=SYBNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=SYBNEUDAT}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
